<%-- 
    Document   : menu
    Created on : Sep 17, 2012, 12:09:58 AM
    Author     : user
--%>

<%@page import="java.util.ArrayList"%>
<body> 
    <!-- Start: page-top-outer -->
    <div id="page-top-outer">    

        <!-- Start: page-top -->
        <div id="page-top">

            <!-- start logo -->
            <div id="logo">
                <a href="controller?page=homepage" target="_blank"> <img src="images/shared/logo.png" width="200" height="56" alt=""/></a>	</div>
            <!-- end logo -->
            <!--  start top-search -->
	<div id="top-search">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
		<td> Selamat Datang, 
                    <%
                        String a = (String)session.getAttribute("nama_user");
                        out.println(a);
                                           %>
                                           Hak Akses : 
                    <%
                        ArrayList listRole1 = new ArrayList();
                        listRole1 = (ArrayList)session.getAttribute("role");
                        for(int r=0; r < listRole1.size(); r++){
                            if(r!=0){
                             out.print(" , ");
                            } 
                                out.print(listRole1.get(r));
                            
                        }
                                           %>
                <td>                  
                </tr>
		</table>
	</div>
 	<!--  end top-search -->

            <div class="clear"></div>

        </div>
        <!-- End: page-top -->

    </div>
    <!-- End: page-top-outer -->

    <div class="clear">&nbsp;</div>

    <!--  start nav-outer-repeat................................................................................................. START -->
    <div class="nav-outer-repeat"> 
        <!--  start nav-outer -->
        <div class="nav-outer"> 

            <!-- start nav-right -->
            <div id="nav-right">
                
                <div class="nav-divider">&nbsp;</div>
                <div class="showhide-account"><img src="images/shared/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
                <div class="nav-divider">&nbsp;</div>
                <a href="logout" id="logout"><img src="images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
                <div class="clear">&nbsp;</div>

                <!--  start account-content -->	
                <div class="account-content">
                    <div class="account-drop-inner">
                        <a href="">Perbarui data</a>
                        <div class="clear">&nbsp;</div>
                        <div class="acc-line">&nbsp;</div>
                        <a href="controller?page=detailuser" id="acc-details">Lihat data</a>
                        <div class="clear">&nbsp;</div>
                        <div class="acc-line">&nbsp;</div>
                        <a href="user_pass_cek.jsp" id="acc-settings">Ganti password</a>
                        <div class="clear">&nbsp;</div>


                    </div>
                </div>
                <!--  end account-content -->

            </div>
            <!-- end nav-right -->
            <%
                
                boolean home = false;

                boolean ppm = false;
                boolean penelitian = false;
                boolean pengmas = false;                
                boolean karyaIlmiah = false;
                boolean karyaHaki = false;
                boolean penawaranDosen = false;
                boolean pengelolaanPenawaranPPM = false;
                
                boolean rekapPpm = false;
                boolean rekapPenelitian = false;
                boolean rekapPengams = false;
                boolean rekapKaryaIlmiah = false;
                boolean rekapKaryaHaki = false;

                boolean kerjasama = false;
                boolean daftarKerjasama = false;
                boolean rekapKerjasama = false;
                
                boolean kemahasiswaan = false;
                boolean prestasi = false;
                boolean prestasi_tu = false;
                boolean beasiswa = false;
                boolean kegMahasiswa = false;
                boolean pendaftaranBea = false;
                boolean pengumumanBea = false;

                boolean rekapMahasiswa = false;
                boolean rekapMahasiswaReguler = false;
                boolean rekapMahasiswaNonReguler = false;
                boolean rekapMahasiswaIpk = false;

                boolean alumni = false;
                boolean daftarAlumni = false;
                boolean alumniBaru = false;
                
                boolean monitoringTA = false;
                boolean dataTA = false;
                boolean statusTA = false;
                boolean pendaftaranSidang = false;
                boolean bimbinganTA = false;
                boolean pendaftarSidang = false;
                boolean rekapBeritaAcara = false;
                boolean rekapBimbinganTA = false;
                boolean kelolaFileTA = false;
                boolean kelolaBeritaTA = false;
                boolean kelolaJadwalSidang = false;
                boolean kelolaBeritaAcara = false;
                boolean kelolaPembimbing = false;
                boolean kelolaYudisium = false;
                boolean mahasiswaBimbingan = false;
				boolean jadwalSidang = false;
                boolean fileTA = false;
                boolean beritaTA = false;
                boolean rekapPendaftarFinal = false;
                
                String menu = (String)request.getAttribute("menu");
                String subMenu = (String)request.getAttribute("submenu");
                
                ArrayList listRole = new ArrayList();
                listRole = (ArrayList)session.getAttribute("role");
                for(int count = 0; count < listRole.size(); count++){
                    String role = (String)listRole.get(count);
                    if(role.equals("tu_ppm")){
                        home = true;

                        rekapPpm = true;
                        rekapPenelitian = true;
                        rekapPengams = true;
                        rekapKaryaIlmiah = true;
                        rekapKaryaHaki = true;

                    }else if(role.equals("tu_akademik")){
                        home = true;
                        
                        monitoringTA = true;
                        rekapPendaftarFinal = true;
                    }
                    else if(role.equals("dosen")){
                        home = true;

                        ppm = true;
                        penelitian = true;
                        pengmas = true;
                        karyaIlmiah = true;
                        karyaHaki = true;
                        penawaranDosen = true;

                        monitoringTA = true;
                        mahasiswaBimbingan = true;
                        jadwalSidang = true;
                        beritaTA = true;
                        
                    } else if(role.equals("koordinator_ppm")){
                        home = true;
                                               
                        rekapPpm = true;
                        rekapPenelitian = true;
                        rekapPengams = true;
                        rekapKaryaIlmiah = true;
                        rekapKaryaHaki = true;
                        
                        ppm = true;
                        pengelolaanPenawaranPPM = true;
                    } else if(role.equals("koordinator_kerjasama")){
                        home = true;

                        kerjasama = true;
                        daftarKerjasama = true;
                        rekapKerjasama = true;
                    }else if(role.equals("koordinator_ta")){
                        home = true;
                        
                        monitoringTA = true;
                        pendaftarSidang = true;
                        rekapBeritaAcara = true;
                        rekapBimbinganTA = true;
                        kelolaFileTA = true;
                        kelolaBeritaTA = true;
                        kelolaPembimbing = true;
                        kelolaYudisium = true;
                        
                    }else if(role.equals("mahasiswa")){
                        home = true;

                        kemahasiswaan = true;
                        prestasi = true;
                        beasiswa = true;
                        kegMahasiswa = true;
                        pendaftaranBea = true;
                        pengumumanBea = true;

                        monitoringTA = true;
                        dataTA = true;
                        statusTA = true;
                        pendaftaranSidang = true;
                        bimbinganTA = true;
						jadwalSidang = true;
                        fileTA = true;
                        beritaTA = true;
                                 
                    }else if(role.equals("laboran_ppsi")){
                        home = true;
                        
                        monitoringTA = true;
                        kelolaJadwalSidang = true;
                        kelolaBeritaAcara = true;
                        fileTA = true;
                        beritaTA = true;          
                    }
                    else if(role.equals("laboran_ebisnis")){
                        home = true;
                        
                        monitoringTA = true;
                        kelolaJadwalSidang = true;
                        kelolaBeritaAcara = true;
                        fileTA = true;
                        beritaTA = true;          
                    }
                    else if(role.equals("laboran_spk")){
                        home = true;
                        
                        monitoringTA = true;
                        kelolaJadwalSidang = true;
                        kelolaBeritaAcara = true;
                        fileTA = true;
                        beritaTA = true;          
                    }
                    else if (role.equals("himpunan_mahasiswa")) {
                        home = true;

                        kemahasiswaan = true;
                        prestasi = true;
                        beasiswa = true;
                        kegMahasiswa = true;

                    }
                    else if (role.equals("alumni")) {
                        home = true;

                        alumni = true;
                        daftarAlumni = true;

                    } else if (role.equals("koordinator_alumni")) {
                        home = true;

                        alumni = true;
                        daftarAlumni = true;
                        alumniBaru = true;

                    } else if (role.equals("admin_tu")) {
                        home = true;

                        kemahasiswaan = true;
                        prestasi_tu = true;
                        beasiswa = true;
                        kegMahasiswa = true;
                        pendaftaranBea = true;

                        rekapMahasiswa = true;
                        rekapMahasiswaReguler = true;
                        rekapMahasiswaNonReguler = true;
                        rekapMahasiswaIpk = true;
                    } else if (role.equals("dosen_tkk")) {
                        home = true;

                        kemahasiswaan = true;
                        prestasi_tu = true;
                        kegMahasiswa = true;

                        rekapMahasiswa = true;
                        rekapMahasiswaReguler = true;
                        rekapMahasiswaNonReguler = true;
                        rekapMahasiswaIpk = true;
                    } else{}
                    
                }
            %>

            <!--  start nav -->
            <div class="nav">
                <div class="table">
                    
                    <% if(home){ %>
                    <ul <% if(menu.equals("home")){ %> class="current" <% } else {%> class="select" <% } %>>
                        <li><a href="#nogo"><b>Home</b></a>
                        </li>
                    </ul>
                    <% } %>

                    <% if(ppm){ %>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if(menu.equals("ppm")){ %> class="current" <% } else {%> class="select" <% } %>><li><a href=""><b>PPM</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div <% if(menu.equals("ppm")){ %>class="select_sub show"<% } else { %> class="select_sub" <% } %>>
                                <ul class="sub">
                                    <% if(penelitian){ %>
                                    <li <% if(subMenu.equals("penelitian")){ %>class="sub_show"<% } %>><a href="tampilDaftarPenelitian">Penelitian</a></li>
                                    <% } if(pengmas){ %>
                                    <li <% if(subMenu.equals("pengmas")){ %>class="sub_show"<% } %>><a href="tampilDaftarPengabdianMasyarakat">Pengabdian Masyarakat</a></li>
                                    <% } if(karyaIlmiah){ %>
                                    <li <% if(subMenu.equals("karyaIlmiah")){ %>class="sub_show"<% } %>><a href="tampilDaftarKaryaIlmiah">Karya Ilmiah</a></li>
                                    <% } if(karyaHaki){ %>
                                    <li <% if(subMenu.equals("karyaHaki")){ %>class="sub_show"<% } %>><a href="tampilDaftarHaki">Karya yang Mendapat HaKI</a></li>
                                    <% } if(penawaranDosen){ %>
                                    <li <% if(subMenu.equals("penawaranDosen")){ %>class="sub_show"<% } %>><a href="tampilPenawaranPpmDosen">Penawaran PPM</a></li>
                                    <% } if(pengelolaanPenawaranPPM){ %>
                                    <li <% if(subMenu.equals("pengelolaanPenawaranPPM")){ %>class="sub_show"<% } %>><a href="tampilPengelolaanPenawaranPpm">Pengelolaan Penawaran PPM</a></li>
                                    <% } %>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <% } %>
                    
                    <% if(kerjasama){ %>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if(menu.equals("kerjasama")){ %> class="current" <% } else {%> class="select" <% } %>><li><a href=""><b>Kerjasama</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div <% if(menu.equals("kerjasama")){ %>class="select_sub show"<% } else { %> class="select_sub" <% } %>>
                                <ul class="sub">
                                    <% if(daftarKerjasama){ %>
                                    <li <% if(subMenu.equals("daftarKerjasama")){ %>class="sub_show"<% } %>><a href="tampilDaftarKerjasama">Daftar Kerjasama</a></li>
                                    <% } %>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <% } %>
                    
                    <% if(rekapPpm){ %>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if(menu.equals("rekapPpm")){ %> class="current" <% } else {%> class="select" <% } %>><li><a href=""><b>Rekapitulasi PPM</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div <% if(menu.equals("rekapPpm")){ %>class="select_sub show"<% } else { %> class="select_sub" <% } %>>
                                <ul class="sub">
                                    <% if(rekapPenelitian ){ %>
                                    <li <% if(subMenu.equals("rekapPenelitian")){ %>class="sub_show"<% } %>><a href="laporanPenelitian">Laporan Penelitian</a></li>
                                    <% } if(rekapPengams){ %>
                                    <li <% if(subMenu.equals("rekapPengams")){ %>class="sub_show"<% } %>><a href="laporanPengabdianMasyarakat">Laporan Pengabdian Masyarakat</a></li>
                                    <% } if(rekapKaryaIlmiah){ %>
                                    <li <% if(subMenu.equals("rekapKaryaIlmiah")){ %>class="sub_show"<% } %>><a href="laporanKaryaIlmiah">Laporan Karya Ilmiah</a></li>
                                    <% } if(rekapKaryaHaki){ %>
                                    <li <% if(subMenu.equals("rekapKaryaHaki")){ %>class="sub_show"<% } %>><a href="laporanPublikasiHaki">Laporan Karya yang Mendapat HaKI</a></li>
                                    <% } %>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <% } %>
                    
                    <% if (kemahasiswaan) {%>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if (menu.equals("kemahasiswaan")) {%> class="current" <% } else {%> class="select" <% }%>><li><a href=""><b>Kemahasiswaan</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div <% if (menu.equals("kemahasiswaan")) {%>class="select_sub show"<% } else {%> class="select_sub" <% }%>>
                                <ul class="sub">
                                    <% if (prestasi) {%>
                                    <li <% if (subMenu.equals("rekapMahasiswaReguler")) {%>class="sub_show"<% }%>><a href="TampilDaftarPrestasi">Prestasi</a></li>
                                    <% }
                                        if (prestasi_tu) {%>
                                    <li <% if (subMenu.equals("prestasi_tu")) {%>class="sub_show"<% }%>> <a href="tampilDaftarPrestasiMhs">Prestasi Mahasiswa</a></li>
                                    <% }
                                        if (beasiswa) {%>
                                    <li <% if (subMenu.equals("beasiswa")) {%>class="sub_show"<% }%>> <a href="daftarBeasiswa">Beasiswa</a></li>
                                    <% }
                                        if (pendaftaranBea) {%>
                                    <li <% if (subMenu.equals("pendaftaranBea")) {%>class="sub_show"<% }%>> <a href="DaftarPendaftarBeasiswa">Daftar Pendaftaran Beasiswa</a></li>
                                    <% }
                                        if (pengumumanBea) {%>
                                    <li <% if (subMenu.equals("pengumumanBea")) {%>class="sub_show"<% }%>> <a href="pengumumanBeasiswa">Pengumuman Beasiswa</a></li>
                                    <% }%>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <% }%>
                    
                    <% if (rekapMahasiswa) {%>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if (menu.equals("rekapMahasiswa")) {%> class="current" <% } else {%> class="select" <% }%>><li><a href=""><b>Rekapitulasi Kemahasiswaan</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div <% if (menu.equals("rekapMahasiswa")) {%>class="select_sub show"<% } else {%> class="select_sub" <% }%>>
                                <ul class="sub">
                                    <%
                                        if (rekapMahasiswaReguler) {%>
                                    <li <% if (subMenu.equals("rekapMahasiswaReguler")) {%>class="sub_show"<% }%>> <a href="TampilDataMahasiswaReguler">Rekapitulasi Data Mahasiswa Reguler</a></li>
                                    <% }
                                        if (rekapMahasiswaNonReguler) {%>
                                    <li <% if (subMenu.equals("rekapMahasiswaNonReguler")) {%>class="sub_show"<% }%>><a href="tampilDataMahasiswaNonReguler">Rekapitulasi Data Mahasiswa Non Reguler</a></li>
                                    <% }
                                        if (rekapMahasiswaIpk) {%>
                                    <li <% if (subMenu.equals("rekapMahasiswaIpk")) {%>class="sub_show"<% }%>> <a href="TampilDataLulusanReg">Rekapitulasi Data IPK Mahasiswa</a></li>
                                    <% }%>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <% }%>
                    
                    <% if (alumni) {%>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if (menu.equals("alumni")) {%> class="current" <% } else {%> class="select" <% }%>><li><a href=""><b>Alumni</b><!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <div <% if (menu.equals("alumni")) {%>class="select_sub show"<% } else {%> class="select_sub" <% }%>>
                                <ul class="sub">
                                    <% if (daftarAlumni) {%>
                                    <li <% if (subMenu.equals("daftarAlumni")) {%>class="sub_show"<% }%>><a href="TampilDaftarAlumni">Daftar Alumni</a></li>
                                    <% }
                                        if (alumniBaru) {%>
                                    <li <% if (subMenu.equals("alumniBaru")) {%>class="sub_show"<% }%>> <a href="TambahAlumniBaru">Tambah Alumni</a></li>
                                    <% }%>
                                </ul>
                            </div>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    </ul>
                    <% }%>
                    
                    <% if(monitoringTA){ %>
                    <div class="nav-divider">&nbsp;</div>
                    <ul <% if(menu.equals("monitoringTA")){ %> class="current" <% } else {%> class="select" <% } %>><li><a href="#nogo"><b>Monitoring TA</b><!--[if IE 7]><!--></a>
                            <div <% if(menu.equals("monitoringTA")){ %>class="select_sub show"<% } else { %> class="select_sub" <% } %>>
                                <ul class="sub">
                                    <% if(statusTA){ %>
                                    <li <% if(subMenu.equals("statusTA")){ %>class="sub_show"<% } %>><a href="SidangTAController?page=statusTA">Status TA</a></li>
                                    <% } if(dataTA){ %>
                                    <li <% if(subMenu.equals("dataTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=formDataTA">Data TA</a></li>
                                    <% } if(pendaftaranSidang){ %>
                                    <li <% if(subMenu.equals("pendaftaranSidang")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=formDaftarSidang">Pendaftaran Sidang</a></li>
                                    <% } if(bimbinganTA){ %>
                                    <li <% if(subMenu.equals("bimbinganTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listBimbinganTA">Bimbingan TA</a></li>
                                    <% } if(pendaftarSidang){ %>
                                    <li <% if(subMenu.equals("pendaftarSidang")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listPendaftarSidang">Pendaftar Sidang</a></li>
                                    <% } if(rekapBeritaAcara){ %>
                                    <li <% if(subMenu.equals("rekapBeritaAcara")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=rekapBeritaAcara">Rekap Berita Acara</a></li>
                                    <% } if(rekapBimbinganTA){ %>
                                    <li <% if(subMenu.equals("rekapBimbinganTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=rekapBimbinganTA">Rekap Bimbingan TA</a></li>
                                    <% } if(kelolaFileTA){ %>
                                    <li <% if(subMenu.equals("kelolaFileTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=kelolaFileTA">Kelola File  TA</a></li>
                                    <% } if(kelolaBeritaTA){ %>
                                    <li <% if(subMenu.equals("kelolaBeritaTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=kelolaBeritaTA">Kelola Berita TA</a></li>
                                    <% } if(kelolaPembimbing){ %>
                                    <li <% if(subMenu.equals("kelolaPembimbing")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=kelolaPembimbing">Kelola Pembimbing</a></li>
                                    <% } if(kelolaYudisium){ %>
                                    <li <% if(subMenu.equals("kelolaYudisium")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=kelolaYudisium">Kelola Yudisium</a></li>
                                    <% } if(kelolaJadwalSidang){ %>
                                    <li <% if(subMenu.equals("kelolaJadwalSidang")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listJadwalSidang">Kelola Jadwal Sidang</a></li>
                                    <% } if(rekapPendaftarFinal){ %>
                                    <li <% if(subMenu.equals("rekapPendaftarFinal")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=rekapPendaftarFinal">Rekap Pendaftar Final</a></li>
                                    <% } if(kelolaBeritaAcara){ %>
                                    <li <% if(subMenu.equals("kelolaBeritaAcara")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listBeritaAcara">Kelola Berita Acara</a></li>
                                    <% } if(mahasiswaBimbingan){ %>
                                    <li <% if(subMenu.equals("mahasiswaBimbingan")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listMhsBimbingan">Mahasiswa Bimbingan</a></li>
                                    <% } if(jadwalSidang){ %>
                                    <li <% if(subMenu.equals("jadwalSidang")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=jadwalSidang">Jadwal Sidang</a></li>
                                    <% } if(fileTA){ %>
                                    <li <% if(subMenu.equals("fileTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listFileTA">File TA</a></li>
                                    <% } if(beritaTA){ %>
                                    <li <% if(subMenu.equals("beritaTA")){ %>class="sub_show"<% } %>> <a href="SidangTAController?page=listBeritaTA">Berita TA</a></li>
                                    <% }%>
                                </ul>
                            </div>
                        </li>
                    </ul>
                    <% } %>

                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
            <!--  start nav -->

        </div>
        <div class="clear"></div>
        <!--  start nav-outer -->
    </div>
    <!--  start nav-outer-repeat................................................... END -->

    <div class="clear"></div>



    <!-- end page-heading //sampai sini-->
